﻿<UserControl x:Class="Boggle.Net.Views.Game.ToolBar"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        >
    
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="..\..\Styles\Styles.xaml" />
            </ResourceDictionary.MergedDictionaries>

            <Style TargetType="{x:Type Button}" BasedOn="{StaticResource StandardButton}" />
        </ResourceDictionary>
    </UserControl.Resources>
    <DockPanel>
        <Button x:Name="Solve" Content="_Solve" />
        
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
            <StackPanel.Resources>
                <Style TargetType="{x:Type TextBlock}">
                    <Setter Property="Foreground" Value="White" />
                </Style>
            </StackPanel.Resources>
            <TextBlock Text="Score: " >
                <Run Text="{Binding Score, Mode=OneWay}" FontWeight="Bold" />
            </TextBlock>
            <Label />
            <TextBlock Text="{Binding GameTime, Mode=OneWay, StringFormat=m\\:ss}" />
        </StackPanel>
    </DockPanel>
</UserControl>
